<script lang="ts" setup>
import PromoteTemplate from "./PromoteTemplate.vue";
import GridBox from "./GridBox.vue";
import { ref } from "vue";

type Promote = {
  name: string;
  desc: string;
  img: string;
};
const promotes = ref<Promote[]>([]);

for (let i = 0; i < 9; i++) {
  promotes.value.push({
    name: "标题",
    desc: "描述",
    img: "./index/promote.svg",
  });
}
</script>
<template>
  <PromoteTemplate>
    <GridBox :data="promotes" />
  </PromoteTemplate>
</template>
<style lang="scss" scoped></style>
